home *** CD-ROM | disk | FTP | other *** search
- Date: 10 Jan 1996 22:03:16 EST
- Path: gcomm.com!jackal
- Newsgroups: comp.lang.c
- From: jackal@gcomm.com (Jack Alvrus)
- Message-ID: <8213293982604@demosys.gcomm.com>
- Organization: Galacticomm, Inc.
- Subject: stricmp()
-
-
- Here's a fun question for ya':
-
- stricmp() is an ANSI library function, right? So it should exhibit, if
- not consistent, at least *documented* behavior, right?
-
- So, is stricmp("a","^") always less than zero or greater than zero, and
- if neither, is there any documented behavior in this case?
-
- I ask because '^' is *between* 'A' and 'a' in ASCII. So if stricmp()
- always compares to upper case letters, stricmp("a","^") is always less
- than zero. If it always compares to lower case letters,
- stricmp("a","^") is always *greater* than zero.
-
- My compiler's reference manual does not say one way or another, but a
- quick test showed stricmp("a","^") < 0.
-
- Any comments?
-
- Jack Alvrus
- Galacticomm Software Engineer
-